package com.yingxue.demo.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Package: com.company.scaffold.config
 * @Author: Mr.Waves
 * @Date: 2020-03-07 20:46
 * @Description:
 **/
@Configuration
@MapperScan("com.yingxue.demo.mapper")
public class MybatisPlusConfig {

    /*
     * 分页拦截器
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
